package com.will.seed.websocket;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * Created by xiaoEight on 2018/8/21.
 */
public class SyncSender {

    @Autowired
    private StringRedisTemplate stringRedisTemplate;


    public boolean pub(String token,String message){
        stringRedisTemplate.convertAndSend(token, message);
        return true;
    }
}
